#pragma once
class Blob
{
public:
	Blob(void);
	~Blob(void);

	void addPixel(int x, int y);
	void clear();
	int getCOMX();
	int getCOMY();

	int getSize() {return pixelCount;}
	int getLeftExtent() {return leftExtent;}
	int getRightExtent() {return rightExtent;}
	int getTopExtent() {return topExtent;}
	int getBottomExtent() {return bottomExtent;}

	int getHeight();
	int getWidth();

	double getRatio();	// used for hand detection

private:
	int pixelCount;
	long sumX;
	long sumY;
	int leftExtent;
	int rightExtent;
	int topExtent;
	int bottomExtent;

	int width;
	int height;
};

